Skip to content

Comments

refactor(bpf): hide path_hooks_support_bpf_d_path#315

Draft
Molter73 wants to merge 2 commits intomainfrom
mauro/refactor/minor-bpf-improvements
Draft

refactor(bpf): hide path_hooks_support_bpf_d_path#315
Molter73 wants to merge 2 commits intomainfrom
mauro/refactor/minor-bpf-improvements

Conversation

@Molter73
Copy link
Contributor

Description

Make the decision of using bpf_d_path or our own d_path implementation transparent from the main LSM hook functions. Instead, the decision is made inside the events and bound_path modules.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

CI is enough.

Implement the path_rename LSM hook in order to capture and generate
rename events. The implementation is fairly basic and does nothing with
regards to inode tracking other than checking if either of the inodes
involved are tracked.

With this change we get better visibility into commands that use
renaming as a means for editing a file, like vi and sed.
Make the decision of using `bpf_d_path` or our own `d_path`
implementation transparent from the main LSM hook functions. Instead,
the decision is made inside the events and bound_path modules.
Base automatically changed from mauro/ROX-30256/track-rename to main February 25, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant